package com.xdtech.hotel.dao;

import org.springframework.stereotype.Repository;

import com.xdtech.core.orm.hibernate.HibernateDao;
import com.xdtech.hotel.model.RoomConfig;

/**
 * 
 * @author max.zheng
 * @create 2015-04-04 11:42:14
 * @since 1.0
 * @see
 */
@Repository
public class RoomConfigDao extends HibernateDao<RoomConfig, Long>{

	/**
	 * 根据roomType获取客房配置信息
	 * @author max.zheng
	 * @create 2015-4-5下午11:22:20
	 * @modified by
	 * @param roomType
	 * @return
	 */
	public RoomConfig getByRoomType(String roomType) {
		return findUnique("from RoomConfig where roomType=?", roomType);
	}

}
